package com.wondertek.common.log;

import com.wondertek.common.util.security.LoginUser;
import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @author xqs
 */
public interface AutoLogService {

    void saveAutoLog(AutoLogDto autoLogDto);

    /**
     * 异步记录日志
     *
     * @param point
     * @param result
     * @param startTime
     * @param ip
     * @param tr
     */
    void asyncPoressLog(ProceedingJoinPoint point, Object result, long startTime, String ip, LoginUser loginUser, Throwable tr);
}
